package com.zb_study.tankgame4;

import javax.swing.*;

public class ZbTankGame04 extends JFrame {


    MyPanel mp = null;
    public static void main(String[] args) {

        ZbTankGame04 zbTankGame01 = new ZbTankGame04();
    }

    public ZbTankGame04() {
        mp = new MyPanel();
        Thread thread = new Thread(mp);
        thread.start();
        this.add(mp);
        this.setSize(1200,950);
        this.addKeyListener(mp);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setVisible(true);
    }
}
